package com.virxue.baseweb.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.ModelAttribute;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;
import com.virxue.baseweb.vo.result.BaseResult;

/**
 * @ClassName HttpClientTestController
 * @Description httpclient测试控制器
 *
 * @author sunhaojie 3113751575@qq.com
 * @date 2016年8月25日 下午4:46:44
 */
@RequestMapping("http_client")
@Controller
public class HttpClientTestController {

    @RequestMapping(method = RequestMethod.GET)
    @ResponseBody
    public BaseResult doGet(@ModelAttribute BaseResult result) {
        return result;
    }

    @RequestMapping(method = RequestMethod.POST)
    @ResponseBody
    public BaseResult doPost(@RequestBody BaseResult result) {
        return result;
    }

    @RequestMapping(method = RequestMethod.PUT)
    @ResponseBody
    public BaseResult doPut(@RequestBody BaseResult result) {
        return result;
    }

    @RequestMapping(method = RequestMethod.DELETE)
    @ResponseBody
    public BaseResult doDelete(BaseResult result) {
        return result;
    }
}
